import useSWR from "swr"

export default function useUser() {
    const { data, mutate } = useSWR('/api/user')
    return { 
        user: data || {},
        mutateUser: mutate,
    }
}
